using System;
using System.Collections.Generic;
using System.ByteBuffer;
using tools;

namespace Zjh
{
    /// <summary>
    /// generate by msg tool
    /// 请求确认解散房间返回
    /// </summary>
	public class ResConfirmDisbandRoomMsg : ResMessage
	{
		//玩家id
		public long playerId;
		//0:不同意,非0:同意
		public int yes;

        public ResConfirmDisbandRoomMsg() { }

        public ResConfirmDisbandRoomMsg(long playerId, int yes)
        {
            this.playerId = playerId;
            this.yes = yes;
        }

        
		public void write(object obj)
		{
            ByteBuffer b = obj as ByteBuffer;
			b.PushLong(playerId);
			b.PushInt(yes);
			
		}

	    public void read(object obj)
		{
            MyConverter b = obj as MyConverter;
			playerId = b.toInt64();
			yes = b.toInt32();
			
		}

		public int Id
		{
            get { return 519201; }
		}

        public String Desc
        {
            get { return "请求确认解散房间返回"; }
        }
	}
}